/*
 * Copyright (c) 2025 HiSilicon (Shanghai) Technologies Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef FOCUS_EVALUATION_H
#define FOCUS_EVALUATION_H

#include <stdint.h>
#include <stdbool.h>
#include "ot_type.h"
#include "ot_af_common.h"
#include "ss_pdaf.h"
#include "ss_cdaf.h"
#include "ss_daaf.h"
#include "af_common.h"
#include "scene_detection.h"

#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */

typedef struct {
    td_bool pdChange;
    td_bool distanceChange;
    td_bool zoomChange;
    td_bool tofChange;
    td_bool isInFocus;
    td_bool sceneChange;
    td_bool windowChange;
    OT_AF_SCENE curScene;
    OT_AF_PDAFPolicyInfo pdafPolicyInfo;
} OT_AF_FOCUS_Info;

td_void *AF_FOCUS_EVOLUTION_Init(const OT_AF_InitParam *initParam);
td_s32 AF_FOCUS_EVOLUTION_Deinit(td_void *handle);

#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

#endif
